package com.pxxy.cels.service;

import java.io.IOException;
import java.util.List;

import com.pxxy.cels.entity.NoteBook;

/**
 * @program: Cels
 * @package: qikran.cels.service
 * @description: ${description}
 * @author: qi_kran
 * @create: 2020-04-07 22:37
 **/
public interface INoteBookService {

	/** 生词本存放目录 */
	String NOTE = "datas/note";
	/** 生词本存放的文件 */
	String NOTEBOOK = "mistake.nb";
	/*****
	 * 获得生词记录
	 * @return
	 * @throws IOException
	 */
	List<NoteBook> getNoteBook() throws IOException;
	/****
	 * 存储生词记录
	 * @param noteBookList
	 * @throws IOException
	 */
	void saveNoteBook(List<NoteBook> noteBookList) throws IOException; 
	/***
	 * 存储练习后返回的生词记录
	 * @param noteBookList
	 * @throws IOException
	 */
	void saveNoteBookByReview(List<NoteBook> noteBookList) throws IOException;
}
